commit | f86bbcf85db32596a0484477d1b8042005709049 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed Sep 26 11:21:40 2012 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Fri Sep 28 16:03:08 2012 -0400 |
tree | 38c8e879c737cc4a333fc44ca37430e07706b941 | |
parent | 78e4e05c643768af170e5a4b21712d9a7a26cce5 [diff] |
NFSv4.1: Replace dprintk() in pnfs_update_layout with something less buggy Dereferencing nfsi->layout in order to read plh_flags without holding a spin lock is bug prone. Furthermore, the dprintk() tells you nothing about whether or not the call succeeded. Replace it with something that tells you about whether or not a valid layout segment was returned for the inode in question. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>