projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea0ded7
)
nfs4.1: mark layout as bad on error path in _pnfs_return_layout
author
Fred Isaman
<iisaman@netapp.com>
Wed, 15 Jun 2011 18:32:02 +0000
(14:32 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 15 Jun 2011 18:36:33 +0000
(14:36 -0400)
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/pnfs.c
b/fs/nfs/pnfs.c
index 730d4dbbaf685ec0450c5a47543dde99c234af1a..539b94cb6c0fdfeae2ceb1d007f3c467713e163f 100644
(file)
--- a/
fs/nfs/pnfs.c
+++ b/
fs/nfs/pnfs.c
@@
-652,6
+652,8
@@
_pnfs_return_layout(struct inode *ino)
lrp = kzalloc(sizeof(*lrp), GFP_KERNEL);
if (unlikely(lrp == NULL)) {
status = -ENOMEM;
+ set_bit(NFS_LAYOUT_RW_FAILED, &lo->plh_flags);
+ set_bit(NFS_LAYOUT_RO_FAILED, &lo->plh_flags);
put_layout_hdr(lo);
goto out;
}