diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 730d4dbbaf6..539b94cb6c0 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -652,6 +652,8 @@ _pnfs_return_layout(struct inode *ino) | |||
652 | lrp = kzalloc(sizeof(*lrp), GFP_KERNEL); | 652 | lrp = kzalloc(sizeof(*lrp), GFP_KERNEL); |
653 | if (unlikely(lrp == NULL)) { | 653 | if (unlikely(lrp == NULL)) { |
654 | status = -ENOMEM; | 654 | status = -ENOMEM; |
655 | set_bit(NFS_LAYOUT_RW_FAILED, &lo->plh_flags); | ||
656 | set_bit(NFS_LAYOUT_RO_FAILED, &lo->plh_flags); | ||
655 | put_layout_hdr(lo); | 657 | put_layout_hdr(lo); |
656 | goto out; | 658 | goto out; |
657 | } | 659 | } |