diff options
author | Alex Elder <elder@inktank.com> | 2013-02-15 12:42:29 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2013-02-18 13:19:35 -0500 |
commit | 2480882611e3ab844563dd3d0a822227604ab8fe (patch) | |
tree | 3d6aa23e2199a74bca470da02693c73d2a646c6b /net | |
parent | fbf8685fb155e12a9f4d4b966c7b3442ed557687 (diff) |
ceph: kill ceph_osdc_writepages() "flags" parameter
There is only one caller of ceph_osdc_writepages(), and it always
passes 0 as its "flags" argument. Get rid of that argument and
replace its use in ceph_osdc_writepages() with 0.
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/osd_client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index ac186b7c9986..d4e3812bcebc 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -1866,8 +1866,7 @@ int ceph_osdc_writepages(struct ceph_osd_client *osdc, struct ceph_vino vino, | |||
1866 | u64 off, u64 len, | 1866 | u64 off, u64 len, |
1867 | u32 truncate_seq, u64 truncate_size, | 1867 | u32 truncate_seq, u64 truncate_size, |
1868 | struct timespec *mtime, | 1868 | struct timespec *mtime, |
1869 | struct page **pages, int num_pages, | 1869 | struct page **pages, int num_pages) |
1870 | int flags) | ||
1871 | { | 1870 | { |
1872 | struct ceph_osd_request *req; | 1871 | struct ceph_osd_request *req; |
1873 | int rc = 0; | 1872 | int rc = 0; |
@@ -1876,8 +1875,7 @@ int ceph_osdc_writepages(struct ceph_osd_client *osdc, struct ceph_vino vino, | |||
1876 | BUG_ON(vino.snap != CEPH_NOSNAP); | 1875 | BUG_ON(vino.snap != CEPH_NOSNAP); |
1877 | req = ceph_osdc_new_request(osdc, layout, vino, off, &len, | 1876 | req = ceph_osdc_new_request(osdc, layout, vino, off, &len, |
1878 | CEPH_OSD_OP_WRITE, | 1877 | CEPH_OSD_OP_WRITE, |
1879 | flags | CEPH_OSD_FLAG_ONDISK | | 1878 | CEPH_OSD_FLAG_ONDISK | CEPH_OSD_FLAG_WRITE, |
1880 | CEPH_OSD_FLAG_WRITE, | ||
1881 | snapc, 0, | 1879 | snapc, 0, |
1882 | truncate_seq, truncate_size, mtime, | 1880 | truncate_seq, truncate_size, mtime, |
1883 | true, 1, page_align); | 1881 | true, 1, page_align); |