fs: kill block_prepare_write
__block_write_begin and block_prepare_write are identical except for slightly different calling conventions. Convert all callers to the __block_write_begin calling conventions and drop block_prepare_write. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
committed by
Al Viro
parent
56b0dacfa2
commit
ebdec241d5
@@ -418,8 +418,6 @@ static inline __u32 xattr_hash(const char *msg, int len)
|
||||
|
||||
int reiserfs_commit_write(struct file *f, struct page *page,
|
||||
unsigned from, unsigned to);
|
||||
int reiserfs_prepare_write(struct file *f, struct page *page,
|
||||
unsigned from, unsigned to);
|
||||
|
||||
static void update_ctime(struct inode *inode)
|
||||
{
|
||||
@@ -532,8 +530,7 @@ reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
|
||||
rxh->h_hash = cpu_to_le32(xahash);
|
||||
}
|
||||
|
||||
err = reiserfs_prepare_write(NULL, page, page_offset,
|
||||
page_offset + chunk + skip);
|
||||
err = __reiserfs_write_begin(page, page_offset, chunk + skip);
|
||||
if (!err) {
|
||||
if (buffer)
|
||||
memcpy(data + skip, buffer + buffer_pos, chunk);
|
||||
|
Reference in New Issue
Block a user