diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 01:34:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 01:34:18 -0500 |
commit | 9bc9ccd7db1c9f043f75380b5a5b94912046a60e (patch) | |
tree | dd0a1b3396ae9414f668b0110cc39d11268ad3ed /fs/ncpfs/file.c | |
parent | f0230294271f511b41797305b685365a9e569a09 (diff) | |
parent | bdd3536618443809d18868563eeafa63b9d29603 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro:
"All kinds of stuff this time around; some more notable parts:
- RCU'd vfsmounts handling
- new primitives for coredump handling
- files_lock is gone
- Bruce's delegations handling series
- exportfs fixes
plus misc stuff all over the place"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (101 commits)
ecryptfs: ->f_op is never NULL
locks: break delegations on any attribute modification
locks: break delegations on link
locks: break delegations on rename
locks: helper functions for delegation breaking
locks: break delegations on unlink
namei: minor vfs_unlink cleanup
locks: implement delegations
locks: introduce new FL_DELEG lock flag
vfs: take i_mutex on renamed file
vfs: rename I_MUTEX_QUOTA now that it's not used for quotas
vfs: don't use PARENT/CHILD lock classes for non-directories
vfs: pull ext4's double-i_mutex-locking into common code
exportfs: fix quadratic behavior in filehandle lookup
exportfs: better variable name
exportfs: move most of reconnect_path to helper function
exportfs: eliminate unused "noprogress" counter
exportfs: stop retrying once we race with rename/remove
exportfs: clear DISCONNECTED on all parents sooner
exportfs: more detailed comment for path_reconnect
...
Diffstat (limited to 'fs/ncpfs/file.c')
-rw-r--r-- | fs/ncpfs/file.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/ncpfs/file.c b/fs/ncpfs/file.c index 122e260247f5..8f5074e1ecb9 100644 --- a/fs/ncpfs/file.c +++ b/fs/ncpfs/file.c | |||
@@ -107,8 +107,7 @@ ncp_file_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
107 | void* freepage; | 107 | void* freepage; |
108 | size_t freelen; | 108 | size_t freelen; |
109 | 109 | ||
110 | DPRINTK("ncp_file_read: enter %s/%s\n", | 110 | DPRINTK("ncp_file_read: enter %pd2\n", dentry); |
111 | dentry->d_parent->d_name.name, dentry->d_name.name); | ||
112 | 111 | ||
113 | pos = *ppos; | 112 | pos = *ppos; |
114 | 113 | ||
@@ -166,8 +165,7 @@ ncp_file_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
166 | 165 | ||
167 | file_accessed(file); | 166 | file_accessed(file); |
168 | 167 | ||
169 | DPRINTK("ncp_file_read: exit %s/%s\n", | 168 | DPRINTK("ncp_file_read: exit %pd2\n", dentry); |
170 | dentry->d_parent->d_name.name, dentry->d_name.name); | ||
171 | outrel: | 169 | outrel: |
172 | ncp_inode_close(inode); | 170 | ncp_inode_close(inode); |
173 | return already_read ? already_read : error; | 171 | return already_read ? already_read : error; |
@@ -184,8 +182,7 @@ ncp_file_write(struct file *file, const char __user *buf, size_t count, loff_t * | |||
184 | int errno; | 182 | int errno; |
185 | void* bouncebuffer; | 183 | void* bouncebuffer; |
186 | 184 | ||
187 | DPRINTK("ncp_file_write: enter %s/%s\n", | 185 | DPRINTK("ncp_file_write: enter %pd2\n", dentry); |
188 | dentry->d_parent->d_name.name, dentry->d_name.name); | ||
189 | if ((ssize_t) count < 0) | 186 | if ((ssize_t) count < 0) |
190 | return -EINVAL; | 187 | return -EINVAL; |
191 | pos = *ppos; | 188 | pos = *ppos; |
@@ -264,8 +261,7 @@ ncp_file_write(struct file *file, const char __user *buf, size_t count, loff_t * | |||
264 | i_size_write(inode, pos); | 261 | i_size_write(inode, pos); |
265 | mutex_unlock(&inode->i_mutex); | 262 | mutex_unlock(&inode->i_mutex); |
266 | } | 263 | } |
267 | DPRINTK("ncp_file_write: exit %s/%s\n", | 264 | DPRINTK("ncp_file_write: exit %pd2\n", dentry); |
268 | dentry->d_parent->d_name.name, dentry->d_name.name); | ||
269 | outrel: | 265 | outrel: |
270 | ncp_inode_close(inode); | 266 | ncp_inode_close(inode); |
271 | return already_written ? already_written : errno; | 267 | return already_written ? already_written : errno; |