From: Joel Becker <Joel.Becker@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 1/1] Ocfs2: Teach truncating and punching-hole codes to handle fastsymlink.
Date: Tue, 23 Mar 2010 21:14:09 -0700 [thread overview]
Message-ID: <20100324041409.GJ31783@mail.oracle.com> (raw)
In-Reply-To: <4BA97E2C.8030700@oracle.com>
On Wed, Mar 24, 2010 at 10:51:24AM +0800, tristan wrote:
> > It's not OK to be there. The truncate system call will error if
> > it is not a regular file. Same with OCFS2_IOC_UNRESVP. Thus no symlink
> > can get there. ocfs2_truncate_for_delete() checks i_clusters before
> > calling the real truncate code. Thus it avoids fast symlinks and inline
> > data.
>
> Joel,
>
> I agreed with your point on the fact that truncating for fast symlink
> may be meaningless, since sys_truncate() will block all none-regular
> files. while it does make sense for inline data, see
> ocfs2_truncate_inline(), which was used to deal with inline file
> separately. that's the way we're treating inline file when doing
> truncating, how did you say we avoid this? that makes me confused.
For inline data, we shortcut into ocfs2_truncate_inline() and
never go into the meaty truncate code. That's all I meant.
Joel
--
"Reality is merely an illusion, albeit a very persistent one."
- Albert Einstien
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
next prev parent reply other threads:[~2010-03-24 4:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 8:04 [Ocfs2-devel] [PATCH 1/1] Ocfs2: Teach truncating and punching-hole codes to handle fastsymlink Tristan Ye
2010-03-23 19:52 ` Joel Becker
2010-03-24 1:10 ` tristan
2010-03-24 2:13 ` Joel Becker
2010-03-24 2:21 ` tristan
2010-03-24 2:32 ` Joel Becker
2010-03-24 2:51 ` tristan
2010-03-24 4:14 ` Joel Becker [this message]
2010-03-25 18:25 ` Sunil Mushran
2010-03-26 1:12 ` tristan
2010-03-24 1:29 ` tristan
-- strict thread matches above, loose matches on Subject: below --
2010-03-24 1:05 Tristan Ye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100324041409.GJ31783@mail.oracle.com \
--to=joel.becker@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.