mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
VFS: Pass mount flags to sget()
Pass mount flags to sget() so that it can use them in initialising a new superblock before the set function is called. They could also be passed to the compare function. Signed-off-by: David Howells <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
f015f1267b
commit
9249e17fe0
20 changed files with 40 additions and 50 deletions
|
|
@ -519,7 +519,7 @@ static struct dentry *logfs_get_sb_device(struct logfs_super *super,
|
|||
log_super("LogFS: Start mount %x\n", mount_count++);
|
||||
|
||||
err = -EINVAL;
|
||||
sb = sget(type, logfs_sb_test, logfs_sb_set, super);
|
||||
sb = sget(type, logfs_sb_test, logfs_sb_set, flags | MS_NOATIME, super);
|
||||
if (IS_ERR(sb)) {
|
||||
super->s_devops->put_device(super);
|
||||
kfree(super);
|
||||
|
|
@ -542,7 +542,6 @@ static struct dentry *logfs_get_sb_device(struct logfs_super *super,
|
|||
sb->s_maxbytes = (1ull << 43) - 1;
|
||||
sb->s_max_links = LOGFS_LINK_MAX;
|
||||
sb->s_op = &logfs_super_operations;
|
||||
sb->s_flags = flags | MS_NOATIME;
|
||||
|
||||
err = logfs_read_sb(sb, sb->s_flags & MS_RDONLY);
|
||||
if (err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue