vfs: mnt_drop_write_file()
[deliverable/linux.git] / fs / xattr.c
index 67583de8218cf54213379f586926824f30da5350..82f43376c7cdff1b9acd2b74e31c8e331fb5c307 100644 (file)
@@ -397,7 +397,7 @@ SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
        error = mnt_want_write_file(f);
        if (!error) {
                error = setxattr(dentry, name, value, size, flags);
-               mnt_drop_write(f->f_path.mnt);
+               mnt_drop_write_file(f);
        }
        fput(f);
        return error;
@@ -624,7 +624,7 @@ SYSCALL_DEFINE2(fremovexattr, int, fd, const char __user *, name)
        error = mnt_want_write_file(f);
        if (!error) {
                error = removexattr(dentry, name);
-               mnt_drop_write(f->f_path.mnt);
+               mnt_drop_write_file(f);
        }
        fput(f);
        return error;
This page took 0.023817 seconds and 5 git commands to generate.