android_kernel_samsung_msm8976/fs/ceph
Alex Elder e8afad656c libceph: pass length to ceph_calc_file_object_mapping()
ceph_calc_file_object_mapping() takes (among other things) a "file"
offset and length, and based on the layout, determines the object
number ("bno") backing the affected portion of the file's data and
the offset into that object where the desired range begins.  It also
computes the size that should be used for the request--either the
amount requested or something less if that would exceed the end of
the object.

This patch changes the input length parameter in this function so it
is used only for input.  That is, the argument will be passed by
value rather than by address, so the value provided won't get
updated by the function.

The value would only get updated if the length would surpass the
current object, and in that case the value it got updated to would
be exactly that returned in *oxlen.

Only one of the two callers is affected by this change.  Update
ceph_calc_raw_layout() so it records any updated value.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-01-17 15:52:04 -06:00
..
addr.c libceph: Unlock unprocessed pages in start_read() error path 2012-12-13 08:13:09 -06:00
caps.c ceph: check mds_wanted for imported cap 2013-01-17 12:42:38 -06:00
ceph_frag.c
debugfs.c libceph: delay debugfs initialization until we learn global_id 2012-08-20 10:03:15 -07:00
dir.c ceph: simplify+fix atomic_open 2012-08-02 09:11:19 -07:00
export.c ceph: fix dentry reference leak in ceph_encode_fh(). 2012-12-13 08:13:06 -06:00
file.c ceph: Check for created flag in response from mds 2013-01-17 12:42:36 -06:00
inode.c ceph: Fix __ceph_do_pending_vmtruncate 2012-12-13 08:13:08 -06:00
ioctl.c libceph: pass length to ceph_calc_file_object_mapping() 2013-01-17 15:52:04 -06:00
ioctl.h
Kconfig
locks.c
Makefile
mds_client.c ceph: Check for created flag in response from mds 2013-01-17 12:42:36 -06:00
mds_client.h ceph: Check for created flag in response from mds 2013-01-17 12:42:36 -06:00
mdsmap.c
snap.c ceph: define snap counts as u32 everywhere 2012-07-30 18:15:47 -07:00
strings.c
super.c bdi_register: add __printf verification, fix arg mismatch 2012-12-13 08:13:07 -06:00
super.h ceph: simplify+fix atomic_open 2012-08-02 09:11:19 -07:00
xattr.c