diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-03-14 10:06:32 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-04-01 23:19:12 -0400 |
commit | 4597e695b8baa3e2620da89c7593be70cf20566b (patch) | |
tree | f8e8cf56e4b154e8bef5e6ae2aa802526ccd1668 /fs/open.c | |
parent | dd20908a8a06b22c171f6c3fcdbdbd65bed07505 (diff) | |
download | op-kernel-dev-4597e695b8baa3e2620da89c7593be70cf20566b.zip op-kernel-dev-4597e695b8baa3e2620da89c7593be70cf20566b.tar.gz |
get rid of DEBUG_WRITECOUNT
it only makes control flow in __fput() and friends more convoluted.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -683,7 +683,6 @@ static int do_dentry_open(struct file *f, error = __get_file_write_access(inode, f->f_path.mnt); if (error) goto cleanup_file; - file_take_write(f); } f->f_mapping = inode->i_mapping; @@ -731,14 +730,7 @@ cleanup_all: fops_put(f->f_op); if (f->f_mode & FMODE_WRITE) { if (!special_file(inode->i_mode)) { - /* - * We don't consider this a real - * mnt_want/drop_write() pair - * because it all happenend right - * here, so just reset the state. - */ put_write_access(inode); - file_reset_write(f); __mnt_drop_write(f->f_path.mnt); } } |