1. 17 11月, 2010 2 次提交
  2. 29 10月, 2010 1 次提交
  3. 27 10月, 2010 1 次提交
  4. 26 10月, 2010 1 次提交
    • C
      fs: do not assign default i_ino in new_inode · 85fe4025
      Christoph Hellwig 提交于
      Instead of always assigning an increasing inode number in new_inode
      move the call to assign it into those callers that actually need it.
      For now callers that need it is estimated conservatively, that is
      the call is added to all filesystems that do not assign an i_ino
      by themselves.  For a few more filesystems we can avoid assigning
      any inode number given that they aren't user visible, and for others
      it could be done lazily when an inode number is actually needed,
      but that's left for later patches.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NDave Chinner <dchinner@redhat.com>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      85fe4025
  5. 11 8月, 2010 3 次提交
  6. 22 7月, 2010 1 次提交
  7. 21 5月, 2010 2 次提交
    • R
      USB: gadget: f_fs.c needs to include pagemap.h · b0608690
      Randy Dunlap 提交于
      Fix g_ffs build error, add a needed header file:
      
      drivers/usb/gadget/f_fs.c:1064:error: 'PAGE_CACHE_SIZE' undeclared (first use in this function)
      drivers/usb/gadget/f_fs.c:1065:error: 'PAGE_CACHE_SHIFT' undeclared (first use in this function)
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Acked-by: NMichał Nazarewicz <m.nazarewicz@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b0608690
    • M
      USB: f_fs: the FunctionFS driver · ddf8abd2
      Michal Nazarewicz 提交于
      The FunctionFS is a USB composite function that can be used
      with the composite framework to create an USB gadget.
      
      >From kernel point of view it is just a composite function with
      some unique behaviour.  It may be added to an USB
      configuration only after the user space driver has registered
      by writing descriptors and strings (the user space program has
      to provide the same information that kernel level composite
      functions provide when they are added to the configuration).
      
      >From user space point of view it is a file system which when
      mounted provide an "ep0" file.  User space driver need to
      write descriptors and strings to that file.  It does not need
      to worry about endpoints, interfaces or strings numbers but
      simply provide descriptors such as if the function was the
      only one (endpoints and strings numbers starting from one and
      interface numbers starting from core).  The FunctionFS changes
      numbers of those as needed also handling situation when
      numbers differ in different configurations.
      
      When descriptors and strings are written "ep#" files appear
      (one for each declared endpoint) which handle communication on
      a single endpoint.  Again, FunctionFS takes care of the real
      numbers and changing of the configuration (which means that
      "ep1" file may be really mapped to (say) endpoint 3 (and when
      configuration changes to (say) endpoint 2)).  "ep0" is used
      for receiving events and handling setup requests.
      
      When all files are closed the function disables itself.
      Signed-off-by: NMichal Nazarewicz <m.nazarewicz@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ddf8abd2