projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udf: add extent cache support in case of file reading
[firefly-linux-kernel-4.4.55.git]
/
fs
/
udf
/
super.c
diff --git
a/fs/udf/super.c
b/fs/udf/super.c
index 186adbf94b20b770ce29f7bf503f48c20eac2e3b..da8ce9f14387aab98fbdc8f6c3048b66d48bdc61 100644
(file)
--- a/
fs/udf/super.c
+++ b/
fs/udf/super.c
@@
-134,6
+134,8
@@
static struct inode *udf_alloc_inode(struct super_block *sb)
ei->i_next_alloc_goal = 0;
ei->i_strat4096 = 0;
init_rwsem(&ei->i_data_sem);
+ ei->cached_extent.lstart = -1;
+ spin_lock_init(&ei->i_extent_cache_lock);
return &ei->vfs_inode;
}