summaryrefslogtreecommitdiffstats
path: root/fs/ceph/caps.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2010-01-18 11:53:08 +1100
committerSage Weil <sage@newdream.net>2010-03-05 14:49:41 -0800
commitf1a3d57213fe264b4cf584e78bac36aaf9998729 (patch)
tree9adf9ba40793ecf83f7a1fd71b4bd73e726b6dac /fs/ceph/caps.c
parent422d2cb8f9afadba1ecd3614f658b6daaaa480fb (diff)
downloadtalos-obmc-linux-f1a3d57213fe264b4cf584e78bac36aaf9998729.tar.gz
talos-obmc-linux-f1a3d57213fe264b4cf584e78bac36aaf9998729.zip
ceph: update for write_inode API change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/caps.c')
-rw-r--r--fs/ceph/caps.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 8b89b9123252..db122bb357b8 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -5,6 +5,7 @@
#include <linux/sched.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
+#include <linux/writeback.h>
#include "super.h"
#include "decode.h"
@@ -1801,12 +1802,13 @@ int ceph_fsync(struct file *file, struct dentry *dentry, int datasync)
* get by with fewer MDS messages if we wait for data writeback to
* complete first.
*/
-int ceph_write_inode(struct inode *inode, int wait)
+int ceph_write_inode(struct inode *inode, struct writeback_control *wbc)
{
struct ceph_inode_info *ci = ceph_inode(inode);
unsigned flush_tid;
int err = 0;
int dirty;
+ int wait = wbc->sync_mode == WB_SYNC_ALL;
dout("write_inode %p wait=%d\n", inode, wait);
if (wait) {
OpenPOWER on IntegriCloud