1. 11 7月, 2007 33 次提交
  2. 10 7月, 2007 7 次提交
    • S
      [GFS2] Accept old format NFS filehandles · 3ebf4490
      Steven Whitehouse 提交于
      On Tue, 2007-07-10 at 10:06 +0100, Christoph Hellwig wrote:
      > > -#define GFS2_LARGE_FH_SIZE 10
      > > -
      > > -struct gfs2_fh_obj {
      > > -   struct gfs2_inum_host this;
      > > -   u32 imode;
      > > -};
      > > +#define GFS2_LARGE_FH_SIZE 8
      >
      > Because gfs2_decode_fh only accepts file handles with GFS2_LARGE_FH_SIZE
      > or GFS2_LARGE_FH_SIZE you don't accept filehandles sent out by and older
      > gfs version anymore.  Stale filehandles because of a new kernel version
      > are a big no-no, so please add back code to handle the old filehandles
      > on the decode side.
      >
      
      This should fix that problem I think since its only relating to end of
      the fh we can just ignore that field in order to accept the older
      format.
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Wendy Cheng <wcheng@redhat.com>
      3ebf4490
    • S
      [S390] fixed cdl-format detection. · bf1a95a2
      Stefan Haberland 提交于
      CDL formated DASDs are now detected correctly even if no VOL1 label is
      on the disk. This prevents possible loss of data.
      Signed-off-by: NStefan Haberland <stefan.haberland@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      bf1a95a2
    • J
      pipe: add documentation and comments · 0845718d
      Jens Axboe 提交于
      As per Andrew Mortons request, here's a set of documentation for
      the generic pipe_buf_operations hooks, the pipe, and pipe_buffer
      structures.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      0845718d
    • J
      pipe: change the ->pin() operation to ->confirm() · cac36bb0
      Jens Axboe 提交于
      The name 'pin' was badly chosen, it doesn't pin a pipe buffer
      in the most commonly used sense in the kernel. So change the
      name to 'confirm', after debating this issue with Hugh
      Dickins a bit.
      
      A good return from ->confirm() means that the buffer is really
      there, and that the contents are good.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      cac36bb0
    • J
      Remove remnants of sendfile() · d96e6e71
      Jens Axboe 提交于
      There are now zero users of .sendfile() in the kernel, so kill
      it from the file_operations structure and in do_sendfile().
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      d96e6e71
    • C
      xip sendfile removal · d054fe3d
      Carsten Otte 提交于
      This patch removes xip_file_sendfile, the sendfile implementation for
      xip without replacement. Those customers that use xip on s390 are not
      using sendfile() as far as we know, and so far s390 is the only platform
      this could potentially be used on so far.
      Having sendfile is not a popular feature for execute in place file
      systems, however we have a working implementation of splice_read() based
      on fs/splice.c if anyone asks for it.
      At this point in time, it does not seem preferable to merge
      splice_read() for xip because it causes extra maintenence effort due to
      code duplication and it requires struct page behind the xip memory
      segment. We'd like to get rid of that in favor of supporting flash based
      embedded platforms (Monta Vista work) soon.
      Signed-off-by: NCarsten Otte <cotte@de.ibm.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      d054fe3d
    • J
      splice: completely document external interface with kerneldoc · 932cc6d4
      Jens Axboe 提交于
      Also add fs/splice.c as a kerneldoc target with a smaller blurb that
      should be expanded to better explain the overview of splice.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      932cc6d4