aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/xattr.c')
-rw-r--r--fs/reiserfs/xattr.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/fs/reiserfs/xattr.c b/fs/reiserfs/xattr.c
index bf6e58214538..fab4b9b2664f 100644
--- a/fs/reiserfs/xattr.c
+++ b/fs/reiserfs/xattr.c
@@ -426,6 +426,12 @@ static inline __u32 xattr_hash(const char *msg, int len)
426 return csum_partial(msg, len, 0); 426 return csum_partial(msg, len, 0);
427} 427}
428 428
429int reiserfs_commit_write(struct file *f, struct page *page,
430 unsigned from, unsigned to);
431int reiserfs_prepare_write(struct file *f, struct page *page,
432 unsigned from, unsigned to);
433
434
429/* Generic extended attribute operations that can be used by xa plugins */ 435/* Generic extended attribute operations that can be used by xa plugins */
430 436
431/* 437/*
@@ -512,15 +518,15 @@ reiserfs_xattr_set(struct inode *inode, const char *name, const void *buffer,
512 rxh->h_hash = cpu_to_le32(xahash); 518 rxh->h_hash = cpu_to_le32(xahash);
513 } 519 }
514 520
515 err = mapping->a_ops->prepare_write(fp, page, page_offset, 521 err = reiserfs_prepare_write(fp, page, page_offset,
516 page_offset + chunk + skip); 522 page_offset + chunk + skip);
517 if (!err) { 523 if (!err) {
518 if (buffer) 524 if (buffer)
519 memcpy(data + skip, buffer + buffer_pos, chunk); 525 memcpy(data + skip, buffer + buffer_pos, chunk);
520 err = 526 err =
521 mapping->a_ops->commit_write(fp, page, page_offset, 527 reiserfs_commit_write(fp, page, page_offset,
522 page_offset + chunk + 528 page_offset + chunk +
523 skip); 529 skip);
524 } 530 }
525 unlock_page(page); 531 unlock_page(page);
526 reiserfs_put_page(page); 532 reiserfs_put_page(page);