diff options
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 8ed79d5c54f9..a85138ef67ad 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c | |||
@@ -341,7 +341,7 @@ void nfs4_put_open_state(struct nfs4_state *state) | |||
341 | /* | 341 | /* |
342 | * Close the current file. | 342 | * Close the current file. |
343 | */ | 343 | */ |
344 | void nfs4_close_state(struct nfs4_state *state, mode_t mode) | 344 | void nfs4_close_state(struct path *path, struct nfs4_state *state, mode_t mode) |
345 | { | 345 | { |
346 | struct inode *inode = state->inode; | 346 | struct inode *inode = state->inode; |
347 | struct nfs4_state_owner *owner = state->owner; | 347 | struct nfs4_state_owner *owner = state->owner; |
@@ -375,7 +375,7 @@ void nfs4_close_state(struct nfs4_state *state, mode_t mode) | |||
375 | spin_unlock(&inode->i_lock); | 375 | spin_unlock(&inode->i_lock); |
376 | spin_unlock(&owner->so_lock); | 376 | spin_unlock(&owner->so_lock); |
377 | 377 | ||
378 | if (oldstate != newstate && nfs4_do_close(inode, state) == 0) | 378 | if (oldstate != newstate && nfs4_do_close(path, state) == 0) |
379 | return; | 379 | return; |
380 | nfs4_put_open_state(state); | 380 | nfs4_put_open_state(state); |
381 | nfs4_put_state_owner(owner); | 381 | nfs4_put_state_owner(owner); |