summaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4proc.c
diff options
context:
space:
mode:
authorAndy Adamson2011-03-12 08:58:10 +0100
committerTrond Myklebust2011-03-24 20:49:48 +0100
commitef31153786bc1e4304e6b9422cc8b9efef455611 (patch)
tree32739af2c6b0f2ab0fdf05e84b674d94721ffa6d /fs/nfs/nfs4proc.c
parentNFSv4.1 pnfs_layoutcommit_inode fixes (diff)
downloadkernel-qcow2-linux-ef31153786bc1e4304e6b9422cc8b9efef455611.tar.gz
kernel-qcow2-linux-ef31153786bc1e4304e6b9422cc8b9efef455611.tar.xz
kernel-qcow2-linux-ef31153786bc1e4304e6b9422cc8b9efef455611.zip
NFSv4.1 convert layoutcommit sync to boolean
Signed-off-by: Andy Adamson <andros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r--fs/nfs/nfs4proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 6f2f40239d10..43045fa44710 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -5671,7 +5671,7 @@ static const struct rpc_call_ops nfs4_layoutcommit_ops = {
};
int
-nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, int sync)
+nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, bool sync)
{
struct rpc_message msg = {
.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_LAYOUTCOMMIT],
@@ -5699,7 +5699,7 @@ nfs4_proc_layoutcommit(struct nfs4_layoutcommit_data *data, int sync)
task = rpc_run_task(&task_setup_data);
if (IS_ERR(task))
return PTR_ERR(task);
- if (!sync)
+ if (sync == false)
goto out;
status = nfs4_wait_for_completion_rpc_task(task);
if (status != 0)