search for: ocfs2_try_to_write_inline_data

Displaying 5 results from an estimated 5 matches for "ocfs2_try_to_write_inline_data".

2009 Mar 04
5
[PATCH 0/2] ocfs2: two bug fixes about xattr and inline-data
...ne-data, then set id_count with the max_inline_data. After that, we set acl/security xattr entry in ocfs2_init_acl() or ocfs2_init_security_set(), but in there we found inode is full, then panic at ocfs2_claim_metadata in ocfs2_xattr_block_set. the second bug: we don't check inline xattr in ocfs2_try_to_write_inline_data(), so the inline data may overwrite the xattr entries which have already in inode. thanks, tiger
2009 Mar 05
3
[PATCH 0/2] ocfs2: two bug fixes about xattr and inline-data V2
Hi, Thanks Tao and Joel's review, These are the second version of the patches. Mark and Joel, you can correct my comments if you find they don't suitable. thanks, tiger
2009 Jul 13
1
[PATCH 1/1] adds mlogs to aops.c
...cpu(di->id2.i_data.id_count)) + mlog_entry("(%llu, %llu)\n", + di_bh->b_blocknr, (unsigned long long)new_size); + + if (new_size <= le16_to_cpu(di->id2.i_data.id_count)) { + mlog_exit(1); return 1; + } + mlog_exit(0); return 0; } @@ -1552,14 +1667,14 @@ static int ocfs2_try_to_write_inline_data(struct address_space *mapping, unsigned len, struct page *mmap_page, struct ocfs2_write_ctxt *wc) { - int ret, written = 0; + int ret = 0, written = 0; loff_t end = pos + len; struct ocfs2_inode_info *oi = OCFS2_I(inode); struct ocfs2_dinode *di = NULL; - mlog(0, "Inod...
2009 Jul 21
1
(no subject)
...cpu(di->id2.i_data.id_count)) + mlog_entry("(%llu, %llu)\n", + di_bh->b_blocknr, (unsigned long long)new_size); + + if (new_size <= le16_to_cpu(di->id2.i_data.id_count)) { + mlog_exit(1); return 1; + } + mlog_exit(0); return 0; } @@ -1552,14 +1675,14 @@ static int ocfs2_try_to_write_inline_data(struct address_space *mapping, unsigned len, struct page *mmap_page, struct ocfs2_write_ctxt *wc) { - int ret, written = 0; + int ret = 0, written = 0; loff_t end = pos + len; struct ocfs2_inode_info *oi = OCFS2_I(inode); struct ocfs2_dinode *di = NULL; - mlog(0, "Inod...
2009 Jul 21
1
[PATCH 1/1] ocfs2: adds mlogs to aops.c -V2
...cpu(di->id2.i_data.id_count)) + mlog_entry("(%llu, %llu)\n", + di_bh->b_blocknr, (unsigned long long)new_size); + + if (new_size <= le16_to_cpu(di->id2.i_data.id_count)) { + mlog_exit(1); return 1; + } + mlog_exit(0); return 0; } @@ -1552,14 +1675,14 @@ static int ocfs2_try_to_write_inline_data(struct address_space *mapping, unsigned len, struct page *mmap_page, struct ocfs2_write_ctxt *wc) { - int ret, written = 0; + int ret = 0, written = 0; loff_t end = pos + len; struct ocfs2_inode_info *oi = OCFS2_I(inode); struct ocfs2_dinode *di = NULL; - mlog(0, "Inod...